package tazadum.engine.trigger;

public class IntegratingAdapter implements Adapter {
	private final float koef;
	public float integrator;

	public IntegratingAdapter(final float initialValue, final float koef) {
		integrator = initialValue;
		this.koef = koef;
	}

	@Override
	public float convert(final float value) {
		integrator += koef * value;
		return integrator;
	}
}
